Sets our main struct and passes it to the parent class.
Creates a new GtkSourceMap.
Get the main Gtk struct
the main Gtk struct as a void*
Gets the [property@Map:view] property, which is the view this widget is mapping.
Sets the view that @map will be doing the mapping to.
the main Gtk struct
the main Gtk struct
Get the main Gtk struct
the main Gtk struct as a void*
Returns whether auto-indentation of text is enabled.
Returns the #GtkSourceBackgroundPatternType specifying if and how the background pattern should be displayed for this @view.
Gets the [class@Completion] associated with @view.
Gets the [property@View:enable-snippets] property.
Returns the [class@Gutter] object associated with @window_type for @view.
Returns whether the current line is highlighted.
Gets the [class@Hover] associated with @view.
Returns whether when the tab key is pressed the current selection should get indented instead of replaced with the \t character.
Returns the number of spaces to use for each step of indent.
Gets the [property@View:indenter] property.
Returns whether when inserting a tabulator character it should be replaced by a group of space characters.
Gets attributes and priority for the @category.
Gets the position of the right margin in the given @view.
Returns whether line marks are displayed beside the text.
Returns whether line numbers are displayed beside the text.
Returns whether a right margin is displayed.
Returns %TRUE if pressing the Backspace key will try to delete spaces up to the previous tab stop.
Returns a [enum@SmartHomeEndType] end value specifying how the cursor will move when HOME and END keys are pressed.
Gets the [class@SpaceDrawer] associated with @view.
Returns the width of tabulation in characters.
Determines the visual column at @iter taking into consideration the [property@View:tab-width] of @view.
Inserts one indentation level at the beginning of the specified lines. The empty lines are not indented.
Inserts a new snippet at @location
If %TRUE auto-indentation of text is enabled.
Set if and how the background pattern should be displayed.
Sets the [property@View:enable-snippets] property.
If @highlight is %TRUE the current line will be highlighted.
If %TRUE, when the tab key is pressed when several lines are selected, the selected lines are indented of one level instead of being replaced with a \t character. Shift+Tab unindents the selection.
Sets the number of spaces to use for each step of indent when the tab key is pressed.
Sets the indenter for @view to @indenter.
If %TRUE a tab key pressed is replaced by a group of space characters.
Sets attributes and priority for the @category.
Sets the position of the right margin in the given @view.
If %TRUE line marks will be displayed beside the text.
If %TRUE line numbers will be displayed beside the text.
If %TRUE a right margin is displayed.
When set to %TRUE, pressing the Backspace key will try to delete spaces up to the previous tab stop.
Set the desired movement of the cursor when HOME and END keys are pressed.
Sets the width of tabulation in characters.
Removes one indentation level at the beginning of the specified lines.
Keybinding signal to change case of the text at the current cursor position.
Keybinding signal to edit a number at the current cursor position.
Keybinding signal to join the lines currently selected.
Emitted when a line mark has been activated (for instance when there was a button press in the line marks gutter).
The signal is a keybinding which gets emitted when the user initiates moving a line.
Keybinding signal to move the cursor to the matching bracket.
The signal is a keybinding which gets emitted when the user initiates moving a word.
The signal is emitted to insert a new snippet into the view.
The signal is a key binding signal which gets emitted when the user requests a completion, by pressing <keycombo><keycap>Control</keycap><keycap>space</keycap></keycombo>.
Emitted when a the cursor was moved according to the smart home end setting.
Widget that displays a map for a specific [class@View].
GtkSourceMap is a widget that maps the content of a [class@View] into a smaller view so the user can have a quick overview of the whole document.
This works by connecting a [class@View] to to the GtkSourceMap using the [property@Map:view] property or [method@Map.set_view].
GtkSourceMap is a [class@View] object. This means that you can add a [class@GutterRenderer] to a gutter in the same way you would for a [class@View]. One example might be a [class@GutterRenderer] that shows which lines have changed in the document.
Additionally, it is desirable to match the font of the GtkSourceMap and the [class@View] used for editing. Therefore, [property@Map:font-desc] should be used to set the target font. You will need to adjust this to the desired font size for the map. A 1pt font generally seems to be an appropriate font size. "Monospace 1" is the default. See [method@Pango.FontDescription.set_size] for how to alter the size of an existing [struct@Pango.FontDescription].
When FontConfig is available, GtkSourceMap will try to use a bundled "block" font to make the map more legible.